<!-- HTML header for doxygen 1.8.8-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <!-- For Mobile Devices -->
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
        <meta name="generator" content="Doxygen 1.8.18"/>
        <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
        <title>HElib: /HElib/src/PAlgebra.cpp File Reference</title>
        <!--<link href="tabs.css" rel="stylesheet" type="text/css"/>-->
        <script type="text/javascript" src="dynsections.js"></script>
        <link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
        <link href="doxygen.css" rel="stylesheet" type="text/css" />
        <link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
        <link href='https://fonts.googleapis.com/css?family=Roboto+Slab' rel='stylesheet' type='text/css'>
		<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;1,700&family=Merriweather&family=Merriweather+Sans&family=Open+Sans&family=Poppins:ital@1&family=Roboto:ital,wght@0,400;1,300;1,900&display=swap" rel="stylesheet"> 
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
        <link href="jquery.smartmenus.bootstrap.css" rel="stylesheet">
        <script type="text/javascript" src="jquery.smartmenus.js"></script>
        <!-- SmartMenus jQuery Bootstrap Addon -->
        <script type="text/javascript" src="jquery.smartmenus.bootstrap.js"></script>
        <!-- SmartMenus jQuery plugin -->
    </head>
    <body style="font-family: 'Merriweather', serif;">
        <nav class="navbar navbar-default" role="navigation">
            <div class="container">
                <div class="navbar-header">
                    <a class="navbar-brand">HElib Implementing Homomorphic Encryption</a>
                </div>
            </div>
        </nav>
        <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
            <div class="content" id="content">
                <div class="container">
                    <div class="row">
                        <div class="col-sm-12 panel " style="padding-bottom: 15px;">
                            <div style="margin-bottom: 15px;">
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">PAlgebra.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;algorithm&gt;</code><br />
<code>#include &lt;cmath&gt;</code><br />
<code>#include &lt;<a class="el" href="_p_algebra_8h_source.html">helib/PAlgebra.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="hypercube_8h_source.html">helib/hypercube.h</a>&gt;</code><br />
<code>#include &lt;<a class="el" href="timing_8h_source.html">helib/timing.h</a>&gt;</code><br />
<code>#include &lt;NTL/ZZXFactoring.h&gt;</code><br />
<code>#include &lt;NTL/GF2EXFactoring.h&gt;</code><br />
<code>#include &lt;NTL/lzz_pEXFactoring.h&gt;</code><br />
<code>#include &lt;NTL/BasicThreadPool.h&gt;</code><br />
<code>#include &lt;mutex&gt;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacehelib"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html">helib</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ab77a93b123ead6eef9e6c899afab897c"><td class="memTemplParams" colspan="2">template&lt;typename RX &gt; </td></tr>
<tr class="memitem:ab77a93b123ead6eef9e6c899afab897c"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacehelib.html#ab77a93b123ead6eef9e6c899afab897c">helib::poly_comp</a> (const RX &amp;a, const RX &amp;b)</td></tr>
<tr class="separator:ab77a93b123ead6eef9e6c899afab897c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0780cab8a4fd2f230bfcc1822814cf06"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a0780cab8a4fd2f230bfcc1822814cf06">helib::less_than</a> (NTL::GF2 a, NTL::GF2 b)</td></tr>
<tr class="separator:a0780cab8a4fd2f230bfcc1822814cf06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a507149d174b7d75b1db57d876791fa93"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a507149d174b7d75b1db57d876791fa93">helib::less_than</a> (NTL::zz_p a, NTL::zz_p b)</td></tr>
<tr class="separator:a507149d174b7d75b1db57d876791fa93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acba849e54a054c14527a708b0738735d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#acba849e54a054c14527a708b0738735d">helib::less_than</a> (const NTL::GF2X &amp;a, const NTL::GF2X &amp;b)</td></tr>
<tr class="separator:acba849e54a054c14527a708b0738735d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6da437fc5e5b62183567bd8885b5b086"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a6da437fc5e5b62183567bd8885b5b086">helib::less_than</a> (const NTL::zz_pX &amp;a, const NTL::zz_pX &amp;b)</td></tr>
<tr class="separator:a6da437fc5e5b62183567bd8885b5b086"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a592d23357f47db9beb431daa00b1837b"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a592d23357f47db9beb431daa00b1837b">helib::less_than</a> (const NTL::GF2E &amp;a, const NTL::GF2E &amp;b)</td></tr>
<tr class="separator:a592d23357f47db9beb431daa00b1837b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade745be425656ca6550b68e91647df4d"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#ade745be425656ca6550b68e91647df4d">helib::less_than</a> (const NTL::zz_pE &amp;a, const NTL::zz_pE &amp;b)</td></tr>
<tr class="separator:ade745be425656ca6550b68e91647df4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a95ea63e91091bd7cae299abf5b60e9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a3a95ea63e91091bd7cae299abf5b60e9">helib::less_than</a> (const NTL::GF2EX &amp;a, const NTL::GF2EX &amp;b)</td></tr>
<tr class="separator:a3a95ea63e91091bd7cae299abf5b60e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58072d3099fe887b7de62dba4b16a337"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a58072d3099fe887b7de62dba4b16a337">helib::less_than</a> (const NTL::zz_pEX &amp;a, const NTL::zz_pEX &amp;b)</td></tr>
<tr class="separator:a58072d3099fe887b7de62dba4b16a337"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a742ec1357ca244079dacd7c1cb2fcb90"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a742ec1357ca244079dacd7c1cb2fcb90">helib::calcPolyNormBnd</a> (long m)</td></tr>
<tr class="separator:a742ec1357ca244079dacd7c1cb2fcb90"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad733002556086f79ab0153f09916d2be"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#ad733002556086f79ab0153f09916d2be">helib::comparePAlgebra</a> (const PAlgebra &amp;palg, unsigned long m, unsigned long p, <a class="el" href="api_attributes_8h.html#addf5ec070e9499d36b7f2009ce736076">UNUSED</a> unsigned long r, const std::vector&lt; long &gt; &amp;gens, const std::vector&lt; long &gt; &amp;ords)</td></tr>
<tr class="separator:ad733002556086f79ab0153f09916d2be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7ad5bd5c310b0ad7f96d6e2065e5b2b"><td class="memItemLeft" align="right" valign="top">PAlgebraModBase *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#af7ad5bd5c310b0ad7f96d6e2065e5b2b">helib::buildPAlgebraMod</a> (const PAlgebra &amp;zMStar, long r)</td></tr>
<tr class="memdesc:af7ad5bd5c310b0ad7f96d6e2065e5b2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Builds a table, of type PA_GF2 if p == 2 and r == 1, and PA_zz_p otherwise.  <a href="namespacehelib.html#af7ad5bd5c310b0ad7f96d6e2065e5b2b">More...</a><br /></td></tr>
<tr class="separator:af7ad5bd5c310b0ad7f96d6e2065e5b2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac531d997cd86bd46ac62c3f7cd5665de"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:ac531d997cd86bd46ac62c3f7cd5665de"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacehelib.html#ac531d997cd86bd46ac62c3f7cd5665de">helib::PAlgebraLift</a> (const NTL::ZZX &amp;phimx, const T &amp;lfactors, T &amp;factors, T &amp;crtc, long r)</td></tr>
<tr class="separator:ac531d997cd86bd46ac62c3f7cd5665de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abc33dc76f8abeaf3557b98dd5a400922"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#abc33dc76f8abeaf3557b98dd5a400922">helib::EDF</a> (NTL::vec_zz_pX &amp;v, const NTL::zz_pX &amp;f, long d)</td></tr>
<tr class="separator:abc33dc76f8abeaf3557b98dd5a400922"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0741932e68cabac1a19a68d0a4810bf"><td class="memItemLeft" align="right" valign="top">NTL::zz_pEX&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#ad0741932e68cabac1a19a68d0a4810bf">helib::FrobeniusMap</a> (const NTL::zz_pEXModulus &amp;F)</td></tr>
<tr class="separator:ad0741932e68cabac1a19a68d0a4810bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7cac9469e49eec3d2bcd9db31e0122f1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacehelib.html#a7cac9469e49eec3d2bcd9db31e0122f1">helib::InvModpr</a> (NTL::zz_pX &amp;S, const NTL::zz_pX &amp;F, const NTL::zz_pX &amp;G, long p, long r)</td></tr>
<tr class="separator:a7cac9469e49eec3d2bcd9db31e0122f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa4c4516b395810588dc11afabdd11b62"><td class="memItemLeft" align="right" valign="top">template&lt;&gt; </td></tr>
<tr class="memitem:aa4c4516b395810588dc11afabdd11b62"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacehelib.html#aa4c4516b395810588dc11afabdd11b62">helib::PAlgebraLift</a> (const NTL::ZZX &amp;phimx, const NTL::vec_zz_pX &amp;lfactors, NTL::vec_zz_pX &amp;factors, NTL::vec_zz_pX &amp;crtc, long r)</td></tr>
<tr class="separator:aa4c4516b395810588dc11afabdd11b62"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.8-->
<!-- start footer part -->
</div>
</div>
</div>
</div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
        <script type="text/javascript" src="doxy-boot.js"></script>
</html>
